\subsection{Use case diagrams}
\label{usecaseWebSite}

The actor, association and use case definitions, are explained in \emph{Appendix \ref{useCaseDiagramsDefinition}}, so 
they are not going to be explained is this section. In the Web site application we have two actors:
\begin{itemize}
  \item \emph{Web user}. This actor will use the web site as a common user.
  \item \emph{Web administrator}. This actor will use the web site as an administrator.
\end{itemize}

From now and on when we want to refer to a web user we will call him common user. When we want to refer to an web administrator 
we will call him administrator. And the word \emph{user} is going to be used when we want to refer for both the common user and 
administrator.

\subsubsection{Use cases description}
\label{usecasesdescriptionWeb}

Here we quote the different use cases that have been identified for the Web site application.
\begin{itemize}
  \item \emph{Login}: The user logs in the system. 
  \item \emph{Create common user account}: A new user creates a new account entering his information in the application and the 
	system stores them and creates his account.

  \item \emph{Show friends last position}: The common user watches the last position of all his friends displayed in a map.
  \item \emph{Show users last position}: The administrator watches the last position of all the users dispalyed in a map.

  \item \emph{Show personal account}: The user watches his personal account.
  \item \emph{Modify personal account}: The user modifies his personal account.

  \item \emph{Show friends}: The common user watches his friends.
  \item \emph{Show users}: The administrator watches all the users of the system.
  \item \emph{Search common user}: The administrator searches for a common user.

  \item \emph{Show user's account}: The user watches other user's account.
  \item \emph{Show user's history positions}: The user watches in map one user's history of previous positions.
  \item \emph{Delete common user}: The administrator deletes a common user.

  \item \emph{Create administrator account}: The administrator creates a new administrator account.
\end{itemize}

The user will find an extended guide of these use cases in \emph{Appendix \ref{WebusecasesDescription}}.

\clearpage
\subsubsection{Use case diagram}
\label{usecasediagramWeb}

The use case diagrams allow us to show graphically the actors, use cases and the association between them. 

\begin{center}
\begin{figure}[ht]
\includegraphics[width=1.2\textwidth ]{WebSite/Analysis/images/UseCaseDiagramWebsite.png} 
\caption{Use case diagram for the Web site}
\end{figure}
\end{center}